<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>user add</title>
</head>
<body>
<div class="container">
    <h1>User : Add</h1>

    <form id="messageForm"
          th:action="@{/role/save}"
          th:object="${entity}"
          action="view.html"
          method="post">
        <div th:if="${#fields.hasErrors('*')}"
             class="alert alert-error">
            <p th:each="error : ${#fields.errors('*')}"
               th:text="${error}">
                Validation error
            </p>
        </div>
        <label> name </label>
        <input type="text" th:field="*{name}"/>
        <label> description </label>
        <input type="text" th:field="*{description}"/>

        <div class="form-actions">
            <input type="submit" value="Create"/>
        </div>
    </form>
</div>
</body>
</html>